package com.zsrt.java.day20161223.zzm.demo08;

import org.junit.Test;

public class LingXing {

	@Test
	public void test01(){
	
		for(int i=1;i<=4;i++){
			for(int k=1;k<=4-i;k++){
				System.out.print(" ");
			}
			for(int j=1;j<=2*i-1;j++){
				System.out.print("*");
			}
			System.out.println();
		}
		for(int a=1;a<=3;a++){
			for(int c=1;c<=a;c++){
				System.out.print(" ");
			}
			for(int b=1;b<=-2*a+7;b++){
				System.out.print("*");
			}
			System.out.println();
		}
	}
}
